package user.service.impl;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import user.dao.AjaxResult;
import user.dao.UserVo;
import user.mapper.UserMapper;
import user.service.IUserService;

import java.util.Date;
import java.util.List;


@Service
public class UserService implements IUserService {

    @Autowired
    UserMapper userMapper;

    @Override
    public List<UserVo> get(UserVo userVo) {

        return userMapper.getUser(userVo);
    }

    public void add(UserVo userVo) {


        userMapper.addUser(userVo);
    }

    public void delete(UserVo userVo) {

        userMapper.deleteUser(userVo);
    }

    public void update(UserVo userVo) {

        userMapper.updateUser(userVo);
    }
}
